#pragma once

#include "Timestamp.h"
#include <string>
#include <vector>

namespace ProcessInfo
{
    // read /proc/self/status
    std::string procStatus();

    // read /proc/self/stat
    std::string procStat();

    // read /proc/self/task/tid/stat
    std::string threadStat();

    // readlink /proc/self/exe
    std::string exePath();

    int openedFiles();
    int maxOpenFiles();

    int numThreads();
    std::vector<pid_t> threads();
}

void readFile(std::string filename, int maxSize, std::string* content);